package com.itheima.service.impl;


import com.itheima.dao.GoodsDao;
import com.itheima.dao.TypeDao;
import com.itheima.pojo.Type;
import com.itheima.service.TypeService;
import com.itheima.utils.MapperUtil;

import java.util.List;

/**
 * @author ：spt
 * @date ：Created in 2020/12/14
 * @description ：
 * @version: 1.0
 */

public class TypeServiceImpl implements TypeService {

    private TypeDao typeDao = MapperUtil.getMapper(TypeDao.class);
    @Override
    public List<Type> findAll() {
        System.out.println("查询所有的类型");
        return typeDao.selectAll();
    }
}
